package com.csproj.dispatch.service.mapper;

import com.csproj.dispatch.domain.ProductInfo;
import com.csproj.dispatch.service.dto.ProductInfoDTO;
import com.csproj.siiat.service.mapper.EntityMapper;
import org.mapstruct.Mapper;

/**
 * Mapper for the entity ProductInfo and its DTO ProductInfoDTO.
 */
@Mapper(componentModel = "spring", uses = {ProductDetailInfoMapper.class,})
public interface ProductInfoMapper extends EntityMapper<ProductInfoDTO, ProductInfo> {

    

    

    default ProductInfo fromId(String id) {
        if (id == null) {
            return null;
        }
        ProductInfo productInfo = new ProductInfo();
        productInfo.setId(id);
        return productInfo;
    }
}
